function review_function_fillPage() {

    review_$breadcrumbs.find("a").get(0).href=FilmUrl+common_index;
    review_$breadcrumbs.find("span").get(0).innerHTML=review_type_byUrl;

}
function review_function_fillFilmList(filmList) {

    let count = Math.min(filmList.length,review_$movie.length) ;
    for(let i=0 ;i<count ; i++){
        let $div = review_$movie.eq(i);
        $div.get(0).style.display="";
        let film = filmList[i];
        $div.find("img").get(0).src=FilmUrl+film._540x488pict;
        $div.find("a").get(0).href=FilmUrl+common_about+"?title="+film.title+"&type="+film.type;
        $div.find("a").get(0).innerHTML=film.title;
        $div.find("p").get(0).innerHTML="<span style='color: #2a58ae'>"+film.location+"&nbsp;&nbsp;</span>"+"<span style='color: red'>"+film.filmSource+"&nbsp;&nbsp;</span>"+"<span style='color: green'>"+dateFormat("YYYY-mm-dd",convertDateFromString(film.releaseDate))+"&nbsp;&nbsp;</span>";
    }
    for(let i=count;i<Math.max(filmList.length,review_$movie.length);i++){

        let  div=review_$movie.get(i);
        div.style.display="none";
    }
}
function review_function_addPage(page) {

    review_$FilmAll.get(0).innerHTML=page;
    let pageSize =Math.ceil(page/review_$movie.length);
    review_$PageAll.get(0).innerHTML=pageSize;
    if(pageSize>1){

        let temp=review_$page.find("a").eq(1);
        for(let i=1;i<pageSize;i++){
            let a="<a href='#' name='page' class=\"page-number\">"+(i+1)+"</a>";
            temp.after(a);
            temp=review_$page.find("a[name='page']").last();
        }
    }
  review_function_clickPage();
}
function review_function_clickPage() {
    review_$page.find("a[name='page']").click(function () {
        this.className="page-number current";
        let not = review_$page.find("a[name='page']").not($(this));
        for(let i=0;i<not.length;i++){
            not.get(i).className="page-number";
        }
        review_function_GetFilmListByPageType(this.innerHTML);
        return false;
    })
}
function review_function_GetFilmListByPageType(page) {

    $.post(
        FilmUrl+common_reviewName+"/GetFilmListByPageType",
        {"page":page,
            "type":review_type_byUrl,
            "size":review_$movie.length,
        "message":""},
        function (data) {
                let filmList=data["data"];
                review_function_fillFilmList(filmList);
        },
        "json"

    )
}